package com.aoxin.model.opm;

import java.util.Date;

/**
 * 角色
 * 
 * @author Melody
 * @date 2018年3月22日 上午11:15:03
 */
public class SlfRole {
	/**
	 * key
	 */
	private String key;
	/**
	 * 角色ID
	 */
	private Integer roleId;
	/**
	 * 角色名称
	 */
	private String name;
	/**
	 * 角色描述
	 */
	private String description;
	/**
	 * 状态
	 */
	private Integer state;
	/**
	 * 图标
	 */
	private String ico;
	/**
	 * 排序号
	 */
	private Integer sequence;
	/**
	 * 创建时间
	 */
	private Date createDate;

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
		this.key = String.valueOf(roleId);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description == null ? null : description.trim();
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getIco() {
		return ico;
	}

	public void setIco(String ico) {
		this.ico = ico == null ? null : ico.trim();
	}

	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}
}